from django.conf.urls import patterns, include, url

urlpatterns = patterns('test.views',
    url(r'^create_test/filter/(?P<page_id>\d+)/$', 'filter_questions'),
    url(r'^create_test/filter_for_diagnostic/(?P<page_id>\d+)/$', 'filter_for_diagnostic'),
    url(r'^create_test/filter_for_progress/(?P<page_id>\d+)/$', 'filter_for_progress'),
    url(r'^create_test/exercise/(?P<page_id>\d+)/$', 'create_new_exercise'),
    url(r'^create_test/diagnostic/(?P<page_id>\d+)/$', 'create_new_diagnostic'),
    url(r'^create_test/progress/(?P<page_id>\d+)/$', 'create_new_progress'),
    url(r'^create_test/exercise/create/$', 'new_exercise'),
    url(r'^create_test/progress/create/$', 'new_progress_check'),
    url(r'^create_test/diagnotic/create/$', 'new_diagnostic'),
    url(r'^add_extra/(?P<test_id>\d+)/$','add_extra'),
    url(r'^exercises/$', 'list_exercises'),
    url(r'^diagnostic-tests/$', 'list_diagnostic_tests'),
    url(r'^edit/(?P<exercise_id>\d+)/$', 'edit_exercise'),
    url(r'^delete/(?P<exercise_id>\d+)/$', 'delete_exercise'),
    url(r'^editp/(?P<progress_id>\d+)/$', 'edit_progress_check'),
    url(r'^deletep/(?P<progress_id>\d+)/$', 'delete_progress_check'),
    url(r'^editdia/(?P<diagnostic_test_id>\d+)/$', 'edit_diagnostic_test'),
    url(r'^deletedia/(?P<diagnostic_test_id>\d+)/$', 'delete_diagnostic_test'),
    url(r'^(?P<test_id>\d+)/remove/question/$', 'remove_question'),
    url(r'^create-diagnostic-test/$', 'create_diagnostic_test'),
    url(r'^diagnostic-tests/', 'list_diagnostic_tests'),
    url(r'^trash-diagnostic-test$', 'trash_diagnostic_test'),
    url(r'^transform_to_test/(?P<test_type>\w+)/(?P<page_id>\d+)/$', 'transform_to_test'),
    url(r'^rearrange/(?P<test_id>\d+)$', 'rearrange_questions_in_test'),
)
